home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / pbm / pbm_man.zoo / man1 / pnmconvol.1 < prev    next >
Text File  |  1994-08-27  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. pnmconvol(1)             USER COMMANDS               pnmconvol(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      pnmconvol - general MxN convolution on a portable anymap
  10.  
  11. SYNOPSIS
  12.      pnmconvol _✓c_✓o_✓n_✓v_✓o_✓l_✓u_✓t_✓i_✓o_✓n_✓f_✓i_✓l_✓e [_✓p_✓n_✓m_✓f_✓i_✓l_✓e]
  13.  
  14. DESCRIPTION
  15.      Reads two portable anymaps as input.  Convolves  the  second
  16.      using the first, and writes a portable anymap as output.
  17.  
  18.      Convolution means replacing each pixel with a weighted aver-
  19.      age of the nearby pixels.  The weights and the area to aver-
  20.      age are determined by the convolution matrix.  The  unsigned
  21.      numbers  in  the convolution file are offset by -maxval/2 to
  22.      make signed numbers, and  then  normalized,  so  the  actual
  23.      values in the convolution file are only relative.
  24.  
  25.      Here is a sample convolution file; it does a simple  average
  26.      of the immediate neighbors, resulting in a smoothed image:
  27.          P2
  28.          3 3
  29.          18
  30.          10 10 10
  31.          10 10 10
  32.          10 10 10
  33.  
  34.      The convolution file will usually be  a  bitmap  or  graymap
  35.      instead  of  a  pixmap,  so  that  the same convolution gets
  36.      applied to each color component.  However, if  you  want  to
  37.      use  a  pixmap  and  do a different convolution to different
  38.      colors, you can certainly do that.
  39.  
  40. SEE ALSO
  41.      pnm(5)
  42.  
  43. AUTHOR
  44.      Copyright (C) 1989, 1991 by Jef Poskanzer.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 4.0   Last change: 13 January 1991                  1
  64.  
  65.  
  66.  
  67.